#include <QApplication>
#include <QException>
#include <QDebug>

//#include "qtglwebcamdemo.h"
#include "QtGuiApplication2.h"

//#ifdef _WIN64
//#pragma comment(lib, "../thirdparty/DT/lib/64/XLibDll.lib")
//#else
//#pragma comment(lib, "../thirdparty/DT/lib/32/XLibDll.lib")
//#endif

#ifdef QT_DEBUG
#pragma comment(lib,"../thirdparty/opencv/lib/64/opencv_world320d.lib") 
#else
#pragma comment(lib,"../thirdparty/opencv/lib/64/opencv_world320.lib") 
#endif

int main(int argc, char *argv[])
{
    int res=-1;

    try
    {
        QApplication a(argc, argv);
        QtGLWebcamDemo w;
        w.show();

        res = a.exec();
    }
    catch(QException &e)
    {
        qCritical() << QString("Exception: %1").arg( e.what() );
    }
    catch(...)
    {
        qCritical() << QString("Unhandled Exception");
    }

    return res;
}
